package com.chendx.store.order.controller;

import com.chendx.model.common.dtos.ResponseResult;
import com.chendx.store.api.order.OrderNoticeControllerApi;
import com.chendx.store.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by chendx on 2022/4/25.
 */
@RestController
@RequestMapping("/api/notice")
public class OrderNoticeController implements OrderNoticeControllerApi {

    @Autowired
    private OrderService orderService;

    @Override
    @GetMapping("/getNoReadOrderNotice")
    public ResponseResult getNoReadOrderNotice() {
        return orderService.getNoReadOrderNotice();
    }

    @Override
    @GetMapping("/ordernotice")
    public ResponseResult getOrderNotice() {
        return orderService.getOrderNotice();
    }

    @Override
    @GetMapping("/read")
    public ResponseResult read() {
        return orderService.read();
    }


}
